<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>File Upload Demo</title>
    <link th:if(theme.ico!="null") rel="shortcut icon" th:href="${theme.ico}" type="image/vnd.microsoft.icon">
    <link th:if(theme.ico!="null") rel="icon" th:href="theme.ico" type="image/vnd.microsoft.icon">
<link rel="stylesheet" href="/assets/libs/layui/css/layui.css" media="all">
 <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">

<script type="text/javascript" src="/assets/libs/jquery-3.2.1.min.js"></script>
<script src="/assets/libs/layui/layui.js" charset="utf-8"></script>
	<link th:each="css:${theme.css}" rel="stylesheet" th:href="${css}+'?'+${cacheKey}">
</head>
<body>
<script type="text/javascript">
var token;
var sss;
function ajax(url,data,callback) {
	$.ajax({
		dataType:"json",
		method:"POST",
		url:url,
		data:data,
        beforeSend: function (xhr) {
              xhr.setRequestHeader('token', token);
        },
        success: callback
	});
}

$(document).ready(function() {

	ajax("/security/user/app-login",{"identity": "test","passwd": "123321"},function(res){
		console.log("login",res);
		token=res.data.token;
		console.log("token",token);

		ajax("/service-tailoring/prd-product/query-paged-list",{pageSize:400,pageIndex:1,labelIds:[]},function(res){
			console.log("page",res);
		});

		ajax("/service-tailoring/prd-product/query-paged-list-app",{pageSize:400,pageIndex:1,labelIds:[]},function(res){
			console.log("page-app",res);
		});

		ajax("/service-tailoring/prd-product/query-list",{pageSize:400,pageIndex:1,labelIds:[]},function(res){
			console.log("list",res);
		});

		ajax("/service-tailoring/odr-order/query-paged-list-app",{pageSize:400,pageIndex:1},function(res) {
			console.log("order-list",res);
		});

	});
});



</script>
 </script>

</body>
</html>
